package com.kate.mall.bff.wx.controller;

import com.kate.mall.bff.wx.service.GoodsService;
import com.kate.mall.common.utils.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 新梦想.陈超
 * @version 2021.2
 * @Description: {TODO}
 * @date 2022/12/21 上午10:21
 */
@RestController
@RequestMapping("/wx/goods")
@Slf4j
public class GoodsController {
    @Resource
    private GoodsService goodsService;
    @GetMapping("/detail")
//    @LogAnnotation(module = "微信小程序bff")
    public R detail(Integer id) throws InterruptedException {
        log.trace("进入GoodsController的detail.....");
        return goodsService.detail(id);
    }
}
